Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

408
Views
Vue Js-Error in callback for watcher "function () { return this._data.$$state }": "Error: [vuex] do not mutate vuex store state outside mutation

Screenshot of the error I get in the console

The method I use

In mounted

MapState in the Computed

My code is working. But I don't understand this error. I couldn't find the solution. I ask for your kind help.

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

This is because you mutate state outside mutations and it's there:

this.systemstatus.splice(i, 1)

You could copy systemstatus by using spread operator, for example:

const systemStatusCopy = [...this.systemstatus]

and you won't get any errors, however state won't change either, but if you need it to change in a store, then add mutation and commit a mutation whenever you need.

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!